feat: add justfile, update pre-commit and github actions configs accordingly #10
+59
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
justfile
: addjustfile
, a collector ofjust
commands;just
is a command runner alternative tomake
.pre-commit-config.yaml
: run (relevant)pre-commit
hooks withjust
.github/workflows/actions.yaml
: run (relevant) CI steps withjust
README.md
: updateREADME
.github/workflows/actions.yaml
: setuptaiki-e/install-action@just
action to installjust
within the CI pipeline (necessary step to be able to invokejust
commands there).github/workflows/actions.yaml
: failed attempts to makejust
commands run onpowershell
within the CI pipeline 1. Further references:.github/workflows/actions.yaml
: run actions onbash
(default)justfile
: removepowershell
configuration to revert to (default)bash
2Footnotes
I would have liked to be able to invoke
just
commands onpowershell
(both locally and within the CI pipeline) for personal preference; while managing to make it work locally (being it sufficient to specifyset shell := ["powershell.exe", "-c"]
within thejustfile
as per the docs), I encountered some issues in making it work within the CI pipeline. My understanding is that:bash
is the default shell therepowershell.exe
as the shell injustfile
, potential compatibility issues might arise as you try to usepowershell
syntax inbash
This said, my attempts to setup the CI steps so that they could run on
powershell
miserably failed:powershell
to be the default shell at job level inactions.yaml
didn't workpowershell
didn't worktaiki-e/install-action@just
kept on running onbash
(with no possibility to specify awith: shell:
configuration)Need to explore it further! ↩
I ended up running
just
commands onbash
(both locally and in the CI pipeline). ↩